import java.util.ArrayList;


public class test
{
   public static void main(String[] args)
   {
      ArrayList<String> Coins = new ArrayList<String>();
      ArrayList<String> Coins2 = new ArrayList<String>();
      
      Coins.add("1");
      Coins.add("2");
      Coins.add("3");
      Coins.add("4");
      
      Coins2.add("10");
      Coins2.add("20");
      int Size = Coins.size();
      //String temp = "";
      
      Coins.addAll(Size, Coins2);
      
      //Coins.addAll(0, Coins.subList(pointer, Coins.size()));
    // System.out.println(pointer);
     
      for(int i=0;i<Coins.size();i++)
      System.out.println(Coins.get(i));
   }
}
